from fastapi import Request
from slowapi.util import get_remote_address

from lib.slowapi import LimiterNoWarning


read_count_limiter = LimiterNoWarning(key_func=get_remote_address)


@read_count_limiter.limit("1 per day")
def limit_read_count(request: Request):
    """
    除了帖子作者，帖子查询,
    在一天 1允许增加会议帖子阅读计数的函数
    """
    pass